
#ifndef __ZLC_UTIL_H_
#define __ZLC_UTIL_H_ 1

void my_itoa(uint32_t v, uint8_t cc[])
{
	uint32_t last = v;
	int k = 0;
	while(last > 0) {
		cc[k] = '0' + (last % 10);
		k++;
		last = last / 10;
	}
	cc[k] = 0;
	
	for (int i = 0; i < k; i++) {
		if (i >= k - i - 1)
			break;
		uint8_t tt = cc[i];
		cc[i] = cc[k - i - 1];
		cc[k - i - 1] = tt;
	}
}


#endif // __ZLC_UTIL_H_

